home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHome 2000 March
/
MacHome CD (March 2000).iso
/
pc
/
Education
/
Gradekeeper 5.1.sea
/
Gradekeeper 5.1
/
Gradekeeper.rsrc
/
TEXT_128_Web site index page.txt
< prev
next >
Wrap
Text File
|
2000-01-09
|
3KB
|
144 lines
<HTML>
<HEAD>
<TITLE>
Gradebook
</TITLE>
<SCRIPT LANGUAGE=Javascript>
function CharCode(str, ch) {
var digit = "0123456789";
var lower = "abcdefghijklmnopqrstuvwxyz";
var upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
code = digit.indexOf(str.substr(ch, 1));
if (code != -1) return code + 48;
code = lower.indexOf(str.substr(ch, 1));
if (code != -1) return code + 97;
code = upper.indexOf(str.substr(ch, 1));
if (code != -1) return code + 65;
return -1;
}
function ShowGrades() {
var ch = 0, len = 0, pos = 0, code = 0, total = 0;
len = document.authorization.password.value.length;
for (ch = 0; ch <= len - 1; ch++) {
code = CharCode(document.authorization.password.value, ch);
if ((code >= 48 && code <= 57) ||
(code >= 65 && code <= 90) ||
(code >= 97 && code <= 122)) {
pos += 1;
total += code * pos * 128;
}
}
total *= 1000;
len = document.authorization.username.value.length;
for (ch = 0; ch <= len - 1; ch++) {
code = CharCode(document.authorization.username.value, ch);
if ((code >= 65 && code <= 90) ||
(code >= 97 && code <= 122)) {
total += code;
}
}
url = total + ".html";
window.location = url;
return false;
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1><CENTER><FONT FACE="Verdana,Arial,Helvetica">
Gradebook
</FONT></CENTER></H1>
<CENTER>
<FORM NAME=authorization onsubmit="return ShowGrades()">
<TABLE BORDER=0>
<TR><TD HEIGHT=30></TD></TR>
<TR><TD COLSPAN=2 WIDTH=420>
<FONT FACE="Verdana,Arial,Helvetica">
Please enter your name and ID code as they appear in your
teacher's gradebook, then click the <B>Show Grades</B> button.
</FONT></TD></TR>
<TR><TD HEIGHT=30></TD></TR>
<TR><TD WIDTH=120>
<FONT FACE="Verdana,Arial,Helvetica">
Student Name
</FONT></TD>
<TD WIDTH=300>
<FONT FACE="Verdana,Arial,Helvetica">
<INPUT TYPE=text NAME=username VALUE="" SIZE=40 MAXLENGTH=30>
</FONT></TD></TR>
<TR><TD WIDTH=120>
<FONT FACE="Verdana,Arial,Helvetica">
Student ID Code
</FONT></TD>
<TD WIDTH=300>
<FONT FACE="Verdana,Arial,Helvetica">
<INPUT TYPE=password NAME=password VALUE="" SIZE=40 MAXLENGTH=15>
</FONT></TD></TR>
<TR><TD HEIGHT=30></TD></TR>
<TR><TD COLSPAN=2 WIDTH=420 ALIGN=center>
<FONT FACE="Verdana,Arial,Helvetica">
<INPUT TYPE=submit NAME=grades VALUE="Show Grades">
</FONT></TD></TR>
<TR><TD HEIGHT=30></TD></TR>
<TR><TD COLSPAN=2 WIDTH=420>
<FONT FACE="Verdana,Arial,Helvetica">
If you get an error saying that the file cannot be found,
you probably entered your name or ID code incorrectly.
</FONT></TD></TR>
</TABLE>
</FORM>
</CENTER>
</BODY>
</HTML>